package com.hitgo.soccer.core;

import com.hitgo.soccer.config.MatchConfig;
import com.hitgo.soccer.utils.ByteUtil;

public class Football
{
	private short x;
	private short y;
	
	
	public Football()
	{
		this.x = (short) MatchConfig.ballInitX;
		this.y = (short) MatchConfig.ballInitY;
	}
	
	public void reset()
	{
		this.x = (short) MatchConfig.ballInitX;
		this.y = (short) MatchConfig.ballInitY;
	}
	
	public short getX()
	{
		return x;
	}
	
	public byte[] getXBytes()
	{
		return ByteUtil.shortToByte(this.x);
	}
	
	public void setX(short x)
	{
		this.x = x;
	}
	
	public short getY()
	{
		return y;
	}
	
	public byte[] getYBytes()
	{
		return ByteUtil.shortToByte(this.y);
	}
	
	public void setY(short y)
	{
		this.y = y;
	}
	
}
